package com.factory.service.impl;
import java.util.List;
import com.factory.domain.OperationRecord;
import com.factory.domain.pageData;
import com.factory.mapper.OperationRecordMapper;
import com.factory.service.IOperationRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 操作记录数据处理
 * @date 2024-07-22
 */
@Service
public class OperationRecordServiceImpl implements IOperationRecordService
{
    @Autowired
    private OperationRecordMapper operationRecordMapper;
    /**
     * 查询【请填写功能名称】列表
     * @return 【请填写功能名称】
     */
    @Override
    public List<OperationRecord> selectOperationRecordList(OperationRecord operationRecord)
    {
        return operationRecordMapper.selectOperationRecordList(operationRecord);
    }
    /**
     * 新增【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertOperationRecord(OperationRecord operationRecord)
    {
        return operationRecordMapper.insertOperationRecord(operationRecord);
    }
    /**
     * 查询设备操作记录列表
     *
     */
    @Override
    public List<OperationRecord> selectOperationRecordListPage(pageData pageData) {
        Long startData=(pageData.getPage()-1)*20;
        Long endData=pageData.getPage()*20;
        return operationRecordMapper.selectOperationRecordListPage(startData,endData);
    }
}
